package bean;

import org.springframework.context.support.ClassPathXmlApplicationContext;
public class UserText {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext hong = new ClassPathXmlApplicationContext("user.xml");
        User user1 = (User)hong.getBean("user1");
        user1.setName("hong");
        user1.setId(001);
        user1.show();

        User user2 = (User)hong.getBean("user2");
        user2.setName("run");
        user2.setId(002);
        user2.show();
    }

}
